﻿Read more: ReportViewer PrintButton For Firefox and Google Chrome ~ i come.. i see.. i snap.. 

<script type="text/javascript">
function $_create(elem,tag,target) { return addElem(elem,target,tag)}
function $_add(elem,target) { return addElem(elem,target)}
function $_GB() { return GetBrowser();}

 function GetBrowser()
{

   //JQuery Script;
     if ($.browser.mozilla)
    return 'FF';
   else if ($.browser.msie)
    return 'IE';
   else if ($.browser.webkit)
    return 'OP';
   else if ($.browser.opera)
    return 'WK';
   else
    return 'FF';

}

function addElem(elem,target,tag) {
     if (typeof elem === 'string')
         {   
              var el = document.getElementById(elem);
              if (!el) {
             
              el = document.createElement(tag);
             
              el.id = elem;
              }   
              elem = el;
         } 
          
    if (target)
    {
       
        var dest;
        if (typeof target === 'string')
              dest = document.getElementById(target);
        else
        dest=target;
       
       
         dest.appendChild(elem); 
       
    }  
    
    return elem;
  }

 function insert(elem, target)      {
       if (typeof target === 'string')
       target= document.getElementById(target);
         var myDoc = target.contentWindow || target.contentDocument;
        if (myDoc.document) {
             myDoc = myDoc.document;
         }
        var  headLoc = myDoc.getElementsByTagName("head").item(0);
        var scriptObj = myDoc.createElement("script");
         scriptObj.setAttribute("type", "text/javascript");
         scriptObj.innerHTML='window.print();';
         if (elem)
         elem = document.getElementById(elem);
        
         if (elem)
         headLoc.appendChild(elem); 
         else
         headLoc.appendChild(scriptObj); 
      
  }
  </script>
